export function loopItems<T>(arrLike: ArrayLike<T>, func: (item: T, index: number) => void | false) {
    let len = arrLike.length;
    for (let i = 0; i < len; i++) {
        let goOn = func(arrLike[i], i);
        if (goOn === false) {
            break;
        }
    }
}
